package com.woniu.account.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class ChangePasswordForm {

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    private String accountPass;

    /**
     * 新密码第一遍
     */
    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20个字符")
    @Length(min = 6, message = "密码不能小于6个字符")
    private String newAccountPass;

    /**
     * 新密码第二遍
     */
    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20个字符")
    @Length(min = 6, message = "密码不能小于6个字符")
    private String newAccountPass1;



}
